[BATIK-1285] offset should be set to 0 if this attribute is missing in stop tag#20
Open
bulenkov wants to merge 1 commit intoapache:mainfrom
Open
[BATIK-1285] offset should be set to 0 if this attribute is missing in stop tag#20bulenkov wants to merge 1 commit intoapache:mainfrom
bulenkov wants to merge 1 commit intoapache:mainfrom
Conversation
develar
added a commit
to JetBrains/batik
that referenced
this pull request
Oct 7, 2020
Contributor
|
Can you add the jira id here |
Author
SergeyZh
pushed a commit
to JetBrains/intellij-community
that referenced
this pull request
Feb 11, 2021
…ik#20 GitOrigin-RevId: add90b75d468944bda7a9175547d625fae039d31
|
This problem is still affecting the library, even more now with an increased usage of Figma. |
|
Any updates? @simonsteiner1984 Could you merge the fix please? |
Contributor
|
Can you add a unit test |
|
@simonsteiner1984 Sorry, but what kind of test is needed? We need to check what? Bug was reported three years ago and there is no any messages about unit test. I think if you texted about message early author of issue did it. @bulenkov Excuse me, is it possible for you to continue to fix the bug? |
Contributor
|
It would be a test run thru junit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://issues.apache.org/jira/browse/BATIK-1285
Many modern design tools like Figma and others do not put
offsetattribute when generating a svg image if offset equals0. See https://www.w3.org/TR/SVG/pservers.html#GradientStopAttributesBatik fails with exception while trying to read such svgs. Other programs successfully open these files.
The pull request sets
offsetto0when the attribute is missing.Example of an icon: